//
//  HomeProdItemCell.m
//  JiaoX
//
//  Created by 尹桥印 on 14/11/13.
//  Copyright (c) 2014年 北京娇羞科技有限公司. All rights reserved.
//

#import "HomeProdItemCell.h"


@interface HomeProdItemCell()

@end


@implementation HomeProdItemCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"productItem";
    HomeProdItemCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[HomeProdItemCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        HomeProdItemView *homeProdView =  [[HomeProdItemView alloc]init];
        self.homeProdView = homeProdView;
        [self.contentView addSubview:homeProdView];
    }
    return self;
}

-(void)setHomeProdFrame:(HomeProdViewFrame *)homeProdFrame{
    _homeProdFrame = homeProdFrame;
    _homeProdView.homeProdFrame = homeProdFrame;
    
}
@end
